﻿using System;
using System .Collections .Generic;
using System .Linq;
using System .Web;
using System .ComponentModel;
using System .ComponentModel .DataAnnotations;
namespace VehicleManagement .Models
    {
//    ----------------------备忘录表--------------------
//CREATE TABLE MemoryBook
//(
//    MemRecordID int PRIMARY KEY IDENTITY(1,1),
//    UserID int ,
//    UserRole varchar(18),
//    RecordContent varchar(500),
//    RecordTime datetime,
//    WarnTime datetime,
//    IsComplish bit DEFAULT 0,
//    Remark  char(100)	
//)
//insert into MemoryBook(UserID,UserRole,RecordContent,RecordTime,WarnTime,IsComplish,Remark)
//values(1,'司机负责人','提交报告','2012-03-10','2012-03-20','','')

//insert into MemoryBook(UserID,UserRole,RecordContent,RecordTime,WarnTime,IsComplish,Remark)
//values(1,'司机','开会','2012-03-15','2012-03-26','','')
//insert into MemoryBook(UserID,UserRole,RecordContent,RecordTime,WarnTime,IsComplish,Remark)
//values(1,'财务','税务检查','2012-03-20','2012-03-23','','')
//select * from MemoryBook
    public class MemoryBook
        {
        public int MemRecordID { get; set; }

        [DisplayName("用户序号")]
        [Required(ErrorMessage = "用户序号不能为空")]
        public int UserID { get; set; }


        [DisplayName("用户角色")]
        [Required(ErrorMessage = "用户角色不能为空")]
        public string UserRole { get; set; }

        [DisplayName("代办内容")]
        [Required(ErrorMessage = "代办内容不能为空")]
        [StringLength(500 , ErrorMessage = "代办内容长度不能超过500位")]
        public string RecordContent { get; set; }

        [DisplayName("记录时间")]
        public DateTime RecordTime { get; set; }

        [DisplayName("提醒时间")]
        [Required(ErrorMessage = "提醒时间不能为空")]
        public DateTime WarnTime { get; set; }

         [DisplayName("是否完成")]
        public int IsComplish { get; set; }

         [DisplayName("备注")]
         [StringLength(100 , ErrorMessage = "备注长度不能超过100位")]
        public string Remark { get; set; }





        }
    }